<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/message/hisMessage" onsubmit="return divSearch(this, 'detail');">
<input type="hidden" name="navTabId" value="${navTabId!''}">
<div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li style="width:230px"><label style="width:60px"><@label key="receivedTime.C,colon">接收时间：</@label></label> 
                <input type="text" size="17" name="fromTimeStr" dateFmt="yyyy-MM-dd" class="date" value="<#if (condition.fromTimeStr)??>${condition.fromTimeStr!''}</#if>" /> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a>
                </li>
                <li style="width:230px">
                <label style="width:60px"><@label key="to.C,colon">至：</@label></label>
                <input  type="text" size="17" name="toTimeStr" dateFmt="yyyy-MM-dd" class="date" value="<#if (condition.toTimeStr)??>${condition.toTimeStr!''}</#if>" /> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a>
                </li>
                <li style="width:100px">
                    <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit"><@label key="query.B">查询</@label></button>
                            </div>
                        </div>
                    </li>
            </ul>

        </div>
    </div>
<div class="pageContent">
    <table class="table" width="100%" layoutH="100" rel="detail">
        <thead>
            <tr>
                <th width="100"  orderField="messageCode"><@label key="messageCode.C">消息编码</@label></th>
                <th width="100"  orderField="messageContent"><@label key="messageContent.C">消息内容</@label></th>
                <th width="100"  orderField="receivedTime"><@label key="receivedTime.C">接收时间</@label></th>
                <th width="100"  orderField="readFlag"><@label key="readFlag.C">已读状态</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as message>
            <tr target="message_id" rel="${message.messageID!''}"  onDblClick = "showMessage()">
                <td>${message.messageCode!''}</td>
                <td><#noescape>${message.messageContent!''}</#noescape></td>
                <td>${(message.receivedTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td><#if message.readFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
            </tr>
            </#list> <#else>
            <tr target="message_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="message_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
            <div class="panelBar">
            <#if page??>
                <div class="pages">
            <span><@label key="pagePanelShow.C">显示</@label></span> <select class="combox" name="numPerPage"
                onchange="navTabPageBreak({numPerPage:this.value},'detail')"> <#list
                [10,20,30,50,100,200] as page_size> <#if
                (page.numPerPage)==page_size>
                <option value="${page_size}" selected="selected">${page_size}</option>
                <#else>
                <option value="${page_size}">${page_size}</option> </#if> </#list>
            </select> <span><@label key="pagePanelMiddle.C">共</@label></span><span> <#if page.totalCount??>${page.totalCount?c}<@label key="item.C">条</@label></span></#if>
        </div>

            <div class="pagination" rel="detail" totalCount="<#if page.totalCount??>${page.totalCount?c}</#if>" numPerPage="<#if page.numPerPage??>${page.numPerPage?c}</#if>" pageNumShown="5" currentPage="<#if page.pageNum??>${page.pageNum?c}</#if>"></div>
            </#if>
        </div>
</div>
</form>

<script type="text/javascript">
function showMessage()
{
    var id=$("#message_id").val();
    $.pdialog.open("${rc.getContextPath()}/manage/message/viewhisMessage?id="+id+"&navTabId=${navTabId!''}" , "", "<@label key='messageView.C'>消息详情</@label>", {width:550,height:400,mask:true,maxable:false});　
    
    
}

</script>